#ifndef XABSTRACTSYNTAXTREECREATOR_LET_H
#define XABSTRACTSYNTAXTREECREATOR_LET_H
#include <astree/xabstractsyntaxtreebuilder.h>

class XAbstractSyntaxTreeCreator_Let : public XAbstractSyntaxTreeCreator {
  public:
    XAbstractSyntaxTreeCreator_Let(const std::wstring& name) {
        setName(name);
    }
  public:
    bool isMatched(const XTokenBlock& tokens, uint32_t row, uint32_t col)override;
    std::shared_ptr<XAbstractSyntaxTree> create(const XTokenBlock& tokens, uint32_t row, uint32_t col, std::shared_ptr<XAbstractSyntaxTreeBuilder> builder)override;
};

#endif // XABSTRACTSYNTAXTREECREATOR_ASSIGN_H
